<template>
	<view class="container">
		<view class="header">
			<text class="title">GodTool</text>
			<text class="subtitle">文件处理助手</text>
		</view>
		
		<view class="content">
			<view class="card" @click="navigateTo('/pages/excel/list')">
				<view class="card-icon">📊</view>
				<view class="card-title">Excel表管理</view>
				<view class="card-desc">创建和管理Excel表格</view>
			</view>
			
			<view class="card" @click="navigateTo('/pages/script/list')">
				<view class="card-icon">📝</view>
				<view class="card-title">脚本管理</view>
				<view class="card-desc">创建和管理自定义处理脚本</view>
			</view>
			
			<view class="card" @click="navigateTo('/pages/file/extract')">
				<view class="card-icon">📁</view>
				<view class="card-title">文件提取</view>
				<view class="card-desc">自动化提取文件信息</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {
			navigateTo(url) {
				uni.navigateTo({
					url
				})
			}
		}
	}
</script>

<style>
	.container {
		padding: 20px;
		min-height: 100vh;
		background-color: #f8f8f8;
	}

	.header {
		text-align: center;
		margin: 40px 0;
	}

	.title {
		font-size: 24px;
		font-weight: bold;
		color: #333;
	}

	.subtitle {
		font-size: 14px;
		color: #666;
		margin-top: 10px;
		display: block;
	}

	.content {
		display: flex;
		flex-direction: column;
		gap: 20px;
		padding: 20px;
	}

	.card {
		background: #fff;
		border-radius: 12px;
		padding: 20px;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
		transition: all 0.3s ease;
	}

	.card:active {
		transform: scale(0.98);
	}

	.card-icon {
		font-size: 32px;
		margin-bottom: 10px;
	}

	.card-title {
		font-size: 18px;
		font-weight: bold;
		color: #333;
		margin-bottom: 8px;
	}

	.card-desc {
		font-size: 14px;
		color: #666;
	}
</style>
